import { getHotKeys } from '@/api/search'

async function useHotKeyApi(hotKeysRef) {
  const res = await getHotKeys()
  if (res.code === 0) {
    hotKeysRef.value = res.result.hotKeys
  }
}

export default useHotKeyApi
